package com.ruoyi.common.core.Entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("志愿者服务时长和鲜豆积分的兑换率对象")
public class Rate {

    @ApiModelProperty("记录ID")
    private Long id;
    @ApiModelProperty("志愿者服务时长和鲜豆积分的兑换率")
    private Double rate;
    @ApiModelProperty("创建时间")
    private Date createTime;

    private Map<String,Object> params; //请求参数

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
